#include "main.h"

int main(void)
{
    int r,ele;

    Queue *queue = newQueue(5);

    for(int i=0;i<6;i++)
    {
        r = push(queue,i);
        if(r == 0)
        {
            printf("push success\r\n");
        }
        else
        {
            printf("push fail\r\n");
        }
    }
    printfQueue(queue);
    for(int i=0;i<3;i++)
    {
        r = take(queue,&ele);
        if(r == 0)
        {
            printf("take success\r\n");
        }
        else
        {
            printf("take fail\r\n");
        }
    }
    printfQueue(queue);
    for(int i=100;i<105;i++)
    {
        r = push(queue,i);
        if(r == 0)
        {
            printf("push success\r\n");
        }
        else
        {
            printf("push fail\r\n");
        }
    }
    printfQueue(queue);
    freeQueue(queue);
    printfQueue(queue);
    printf("hello world\r\n");
    return 0;
}
